﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DTO
{
    public class ArticleDetails
    {
        #region "Constructors"
        public ArticleDetails()
        {
        }

        public ArticleDetails(int id, DateTime addedDate, string addedBy,
           int categoryID, string title, string artabstract,
           string body, DateTime releaseDate, DateTime expireDate, bool approved,
           bool listed, bool commentsEnabled, bool onlyForMembers,
           int viewCount, int votes, int totalRating, string imageUrl)
        {
            this.ID = id;
            this.AddedDate = addedDate;
            this.AddedBy = addedBy;
            this.CategoryID = categoryID;
            this.Title = title;
            this.Abstract = artabstract;
            this.Body = body;
            this.ReleaseDate = releaseDate;
            this.ExpireDate = expireDate;
            this.Approved = approved;
            this.Listed = listed;
            this.CommentsEnabled = commentsEnabled;
            this.OnlyForMembers = onlyForMembers;
            this.ViewCount = viewCount;
            this.Votes = votes;
            this.TotalRating = totalRating;
            this.ImageUrl = imageUrl;
        }

        #endregion

        #region "Public Properties"
        public int ID { get; set; }

        public DateTime AddedDate { get; set; }

        public string AddedBy { get; set; }

        public int CategoryID { get; set; }

        public string Title { get; set; }

        public string Abstract { get; set; }

        private string _body = "";
        public string Body { get { return _body; } set { _body = value; } }

        public DateTime ReleaseDate { get; set; }

        public DateTime ExpireDate { get; set; }

        public bool Approved { get; set; }

        public bool Listed { get; set; }

        public bool CommentsEnabled { get; set; }

        public bool OnlyForMembers { get; set; }

        public int ViewCount { get; set; }

        public int Votes { get; set; }

        public int TotalRating { get; set; }

        public string ImageUrl { get; set; }

        #endregion
    }
}
